#include <iostream>
#include "./model/sq-list.h"
#include "./model/linked-list.h"
using namespace std;

void print(ElemType &e)
{
	cout << e << endl;
}

int main()
{
	LinkedList list;
	initLinkedList(list);
	linkedListInsert(list, 0, 'a');
	linkedListInsert(list, 0, 'b');
	linkedListInsert(list, 0, 'c');
	cout << linkedListLength(list) << endl;
	linkedListReverse(list);
	linkedListTraverse(list, print);
	return 0;
}